<?php
/**
 * Copyright (C), 2021-2021, Shall Buy Life info. Co., Ltd.
 * FileName: TestController.php
 * Description: 测试api
 *
 * @author lwl
 * @Create Date    2021/10/21 09:30
 * @Update Date    2021/10/21 09:30 By lwl
 * @version v1.0
 */

namespace Example\Controllers\Test;

use App\Events\CsrfEvent;
use App\Http\Controllers\Controller;
use Illuminate\Http\Request;

final class TestController extends Controller
{
    /**
     * FunctionName：__invoke
     * Description：
     * Author：lwl
     * @throws \Exception
     */
    public function __invoke()
    {

    }

    /**
     * FunctionName:
     * Description:
     * Author: lwl
     */
    public function test()
    {
        $params = $this->request->input();
//        dd($params);
        event(new CsrfEvent($params['csrf_token']));
        dd('hello word');
    }
}
